home *** CD-ROM | disk | FTP | other *** search
- function loadImage(mc, node, extrapath)
- {
- var _loc3_ = extrapath;
- if(_loc3_ == null)
- {
- _loc3_ = "";
- }
- var strDefaultPath = Tardis.ASSETS_FOLDER + "images/" + Tardis.ActiveSection.id + "/";
- var _loc1_ = node.firstChild.nodeValue;
- var _loc2_ = node.attributes.path;
- if(_loc2_ != null)
- {
- _loc1_ = _loc2_ + _loc1_;
- }
- else
- {
- _loc1_ = strDefaultPath + _loc3_ + _loc1_;
- }
- if(strPathPrefix == null)
- {
- strPathPrefix = "";
- }
- mc.loadMovie(strPathPrefix + _loc1_);
- }
- function init()
- {
- var _loc3_ = Tardis.ActiveSection.id;
- var _loc1_ = Tardis.Colors;
- strSECTION_COLOR = _loc1_.getString(_loc3_);
- SECTION_COLOR = _loc1_.getHex(_loc3_);
- SECTION_COLOR50 = _loc1_.getString(_loc3_ + "50");
- DEFAULT_COLOR = _loc1_.getString("default");
- hexDEFAULT_COLOR = _loc1_.getHex("default");
- DEFAULT_COLOR50 = _loc1_.getString("default50");
- ndItems = nodeData.byName("items");
- ndListing = nodeData.byName("listing");
- var _loc2_ = "<FONT COLOR=\"" + strSECTION_COLOR + "\">" + ndListing.byName("title").getText() + " </FONT>";
- _loc2_ += "<FONT COLOR=\"" + SECTION_COLOR50 + "\"> " + ndListing.byName("title2").getText() + "</FONT>";
- _loc2_ += "<FONT COLOR=\"" + DEFAULT_COLOR50 + "\"> " + ndListing.byName("title3").getText() + "</FONT>";
- listingTitleFF.htmlText = _loc2_;
- listingTitleFF.resize();
- if(listingTitleFF._height > 40)
- {
- attachMovie("items2MC","itemMC",++depth);
- itemMC._x = 8;
- itemMC._y = 61;
- }
- else
- {
- attachMovie("items1MC","itemMC",++depth);
- itemMC._x = 8;
- itemMC._y = 38;
- }
- onComplete();
- }
- function exit()
- {
- delete ndItems;
- delete ndDefault;
- delete nodeData;
- }
- function parseBoldTags(str)
- {
- var _loc1_ = str;
- var _loc2_ = _loc1_.indexOf("<b>");
- if(_loc2_ != -1)
- {
- var _loc3_ = _loc1_.indexOf("</b>");
- var word = _loc1_.substring(_loc2_ + 3,_loc3_);
- var beginning = _loc1_.substring(0,_loc2_);
- var end = _loc1_.substring(_loc3_ + 4);
- return beginning + "<font face=\'FranklinGotURWTDem\'>" + word + "</font>" + parseBoldTags(end);
- }
- return _loc1_;
- }
- stop();
- onReady();
- depth = 0;
-